from django.db import models
from utils.custom_log   import log_start
logger = log_start('models')

class BaseModel(models.Model):
    """基类模型"""
    gmt_create = models.DateTimeField(auto_now_add=True, verbose_name="创建时间")
    gmt_modified = models.DateTimeField(auto_now=True, verbose_name="编辑时间")
    desc =  models.CharField(max_length=50, blank=True, null=True, verbose_name="描述")

    class Meta:
        abstract = True  # 抽象模型类, 用于继承使用